package xyhoo.springframework.beans.factory.parsing;

import java.util.ArrayDeque;

public final class ParseState {

    private final ArrayDeque<Entry> state;

    public ParseState() {
        this.state = new ArrayDeque<>();
    }

    private ParseState(ParseState other) {
        this.state = other.state.clone();
    }

    public ParseState snapshot() {
        return new ParseState(this);
    }

    public interface Entry {
    }

    public void push(Entry entry) {
        this.state.push(entry);
    }
}
